gadget: Fix a thinko in baseline adjustment
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 23:14:16 +0000 (18:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 23:15:16 +0000 (18:15 -0500)
We are making the allocation smaller, so the baseline
needs to get smaller too, not bigger.

gtk/gtkcssgadget.c

index b3bf1c607d8bea8ee19b75003110c9b4404a3045..f1a0e975d078ff6b646dc0cb3ca2f63b60926f83 100644 (file)
@@ -547,7 +547,7 @@ gtk_css_gadget_allocate (GtkCssGadget        *gadget,
   content_allocation.width = allocation->width - extents.left - extents.right;
   content_allocation.height = allocation->height - extents.top - extents.bottom;
   if (baseline >= 0)
-    baseline += extents.top;
+    baseline -= extents.top;
 
   if (content_allocation.width < 0)
     {